Skip to content

Match var hygiene, etc #15233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 28, 2014
Merged

Match var hygiene, etc #15233

merged 18 commits into from
Jun 28, 2014

Conversation

jbclements
Copy link
Contributor

This PR includes two big things and a bunch of little ones.

  1. It enables hygiene for variables bound by 'match' expressions.
  2. It fixes a bug discovered indirectly (Hygiene problem in nested macros using ":pat" bindings #15221), wherein fold traversal failed to visit nonterminal nodes.
  3. It fixes a small bug in the macro tutorial.

It also adds tests for the first two, and makes a bunch of small comment improvements and cleanup.

@emberian
Copy link
Member

r=me with any squashing you deem fit

... and possibly totally pointless. Specifically, fixing
these to make their macros hygienic may mean that they no
longer test the thing that they were supposed to test.
Yes, that word is spelled \'memoization\'
as written, I don't believe this comment was helpful; I think it's
better just to steer the reader toward a general understanding of
hygiene.
bors added a commit that referenced this pull request Jun 28, 2014
This PR includes two big things and a bunch of little ones.

1) It enables hygiene for variables bound by 'match' expressions.
2) It fixes a bug discovered indirectly (#15221), wherein fold traversal failed to visit nonterminal nodes.
3) It fixes a small bug in the macro tutorial.

It also adds tests for the first two, and makes a bunch of small comment improvements and cleanup.
@bors bors closed this Jun 28, 2014
@bors bors merged commit 04ced03 into rust-lang:master Jun 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants